﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VK.Comm.TransactSql
{
    public class Condition
    {
        public string TableName { set; get; }
        public string FieldName { set; get; }
        public ConditionType ConditionType { set; get; }
        public object ConditionValue { set; get; }
        public System.Data.DbType DbType { set; get; }

        private string _ParameterName = string.Empty;
        public string ParameterName
        {
            set { _ParameterName = value; }
            get
            {
                if (!string.IsNullOrEmpty(_ParameterName))
                {
                    return _ParameterName;
                }
                else
                {
                    return FieldName;
                }
            }
        }
    }
}
